package com.zz.info.dao;

import com.zz.info.domain.Info;
import com.zz.info.domain.UsercollectionDO;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;

/**
 * 信息发布内容 的用户收藏
 * @author jwh
 * @email 1304058324@qq.com
 * @date 2020-12-06 18:20:48
 */
@Mapper
public interface UsercollectionDao {

	UsercollectionDO get(String userId);
	
	List<UsercollectionDO> list(Map<String,Object> map);

	int count(Map<String,Object> map);

	//-----用户文章-查询 统计----
	List<Info> listToInfo(Map<String, Object> map);
	int countListToInfo(Map<String, Object> map);
	//-----用户文章-查询 统计---end-


	int save(UsercollectionDO usercollection);
	
	int update(UsercollectionDO usercollection);
	
	int remove(String user_id);
	
	int batchRemove(String[] userIds);
}
